package com.example.springsecuritydemo.test;

import java.util.Scanner;
import java.lang.Math;
public class Main{
    public static void main(String[] args){
        Scanner input=new Scanner(System.in);
        int a=input.nextInt();
        int b=input.nextInt();
        int num=findGongBeiShu(Math.max(a, b),Math.min(a, b));
        System.out.println(num);
    }

    public static int findGongBeiShu(int maxNumber,int minNumber){
        int i=1;
        if(minNumber==1)
            return maxNumber;
        else {
            while ((minNumber*i)%maxNumber!=0){
                i++;
            }
        }
        return i*minNumber;
    }

}